package com.suning.sawp.test.bi;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.testng.AbstractTestNGSpringContextTests;
import org.testng.annotations.Test;

import com.suning.sawp.service.impl.bi.BIReportService;
import com.suning.sawp.service.impl.job.DBBIRedundancyJob;

@ContextConfiguration(locations = { "classpath:conf/spring/spring-env-test.xml",
        "classpath:conf/spring/spring-bi.xml" })
@ActiveProfiles({ "sit", "sit-ds" })
public class BIReportTest2 extends AbstractTestNGSpringContextTests {
    @Autowired
    BIReportService biReportService;
    @Autowired
    DBBIRedundancyJob dbBIRedundancyJob;

    String date = "20160719";

    /**
     * 2701 <br/>
     * bi_store_develop_day
     */
    @Test
    public void downloadBIStoreDevelopDay() throws Exception {
        biReportService.downloadBIStoreDevelopDay("/", date, "dj21_test.dat");
    }

    /**
     * 2702 <br/>
     * 【bi_store_develop_week】
     */
    @Test
    public void downloadBIStoreDevelopWeek() throws Exception {
        biReportService.downloadBIStoreDevelopWeek("/", date, "dj22_test.dat");
    }

    /**
     * 2703 <br/>
     * 【bi_store_develop_month】
     */
    @Test
    public void downloadBIStoreDevelopMonth() throws Exception {
        biReportService.downloadBIStoreDevelopMonth("/", date, "dj23_test.dat");
    }

    /**
     * 2704 <br/>
     * 【bi_staff_develop_day】
     */
    @Test
    public void downloadBIStaffDevelopDay() throws Exception {
        biReportService.downloadBIStaffDevelopDay("/", date, "dj24_test.dat");
    }

    /**
     * 2705 <br/>
     * 【bi_staff_develop_week】
     */
    @Test
    public void downloadBIStaffDevelopWeek() throws Exception {
        biReportService.downloadBIStaffDevelopWeek("/", date, "dj25_test.dat");
    }

    /**
     * 2706 <br/>
     * 【bi_staff_develop_month】
     */
    @Test
    public void downloadBIStaffDevelopMonth() throws Exception {
        biReportService.downloadBIStaffDevelopMonth("/", date, "dj26_test.dat");
    }

    /**
     * 27 <br/>
     * 【BI_STORE_DEVELOPING_SALE_MONTH】
     */
    @Test
    public void downloadBIStoreDevelopingSaleMonth() throws Exception {
        biReportService.downloadBIStoreDevelopingSaleMonth("/", date, "dj27_test.dat");
    }

    /**
     * 28 <br/>
     * 【BI_STORE_ARRIVE_SALE_MONTH】
     */
    @Test
    public void downloadBIStoreArriveSaleMonth() throws Exception {
        biReportService.downloadBIStoreArriveSaleMonth("/", date, "dj28_test.dat");
    }

    /**
     * 29 <br/>
     * 【BI_STORE_RECOMMEND_SALE_MONTH】
     */
    @Test
    public void downloadBIStoreRecommendSaleMonth() throws Exception {
        biReportService.downloadBIStoreRecommendSaleMonth("/", date, "dj29_test.dat");
    }

    /**
     * 30 <br/>
     * 【BI_STORE_DEVELOPING_ACTIVITY_SALE_MONTH】
     */
    @Test
    public void downloadBIStoreDevelopingActivitySaleMonth() throws Exception {
        biReportService.downloadBIStoreDevelopingActivitySaleMonth("/", date, "dj30_test.dat");
    }

    /**
     * 31 <br/>
     * 【BI_STAFF_DEVELOPING_ACTIVITY_SALE_MONTH】
     */
    @Test
    public void downloadBIStaffDevelopingActivitySaleMonth() throws Exception {
        biReportService.downloadBIStaffDevelopingActivitySaleMonth("/", date, "dj31_test.dat");
    }

    /**
     * 32 <br/>
     * [BI_STAFF_ARRIVE_SALE_DAY]
     */
    @Test
    public void downloadBIStaffArriveSaleDay() throws Exception {
        biReportService.downloadBIStaffArriveSaleDay("/", date, "dj32_test.dat");
    }

    /**
     * 33 <br/>
     * [BI_STAFF_ARRIVE_SALE_WEEK]
     */
    @Test
    public void downloadBIStaffArriveSaleWeek() throws Exception {
        biReportService.downloadBIStaffArriveSaleWeek("/", date, "dj33_test.dat");
    }

    /**
     * 34 <br/>
     * [BI_STAFF_ARRIVE_SALE_MONTH]
     */
    @Test
    public void downloadBIStaffArriveSaleMonth() throws Exception {
        biReportService.downloadBIStaffArriveSaleMonth("/", date, "dj34_test.dat");
    }

    /**
     * 35 <br/>
     * [BI_STAFF_RECOMMEND_SALE_DAY]
     */
    @Test
    public void downloadBIStaffRecommendSaleDay() throws Exception {
        biReportService.downloadBIStaffRecommendSaleDay("/", date, "dj35_test.dat");
    }

    /**
     * 36 <br/>
     * [BI_STAFF_RECOMMEND_SALE_WEEK]
     */
    @Test
    public void downloadBIStaffRecommendSaleWeek() throws Exception {
        biReportService.downloadBIStaffRecommendSaleWeek("/", date, "dj36_test.dat");
    }

    /**
     * 37 <br/>
     * [BI_STAFF_RECOMMEND_SALE_MONTH]
     */
    @Test
    public void downloadBIStaffRecommendSaleMonth() throws Exception {
        biReportService.downloadBIStaffRecommendSaleMonth("/", date, "dj37_test.dat");
    }

    /**
     * 38 <br/>
     * [BI_STAFF_DEVELOPING_SALE_MONTH]
     */
    @Test
    public void downloadBIStaffDevelopingSaleMonth() throws Exception {
        biReportService.downloadBIStaffDevelopingSaleMonth("/", date, "dj38_test.dat");
    }

}
